import request from '@/utils/request'

/**
 *
 * @param {string} username 用户名
 * @param {Number} password 密码
 * @returns Promise
 */
export const userLogintApi = (username, password) => {
  return request({
    url: '/user/login',
    method: 'POST',
    data: {
      username,
      password
    }
  })
}
/**
 * 查看收藏列表数据
 * @returns Promise
 */
export const userCollectApi = () => {
  return request({
    url: '/user/favorites'
  })
}
